<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: ClientServer类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-static-methods">静态 Protected 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="class_client_server-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">ClientServer类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_client_server_8h_source.html">ClientServer.h</a>&gt;</code></p>
<div class="dynheader">
类 ClientServer 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_client_server.png" usemap="#ClientServer_map" alt=""/>
  <map id="ClientServer_map" name="ClientServer_map">
<area href="class_service.html" title="服务基类" alt="Service" shape="rect" coords="0,0,83,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aa81dcdd56f7f3e0c4dbaebe14b7f16f9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_server.html#aa81dcdd56f7f3e0c4dbaebe14b7f16f9">ClientServer</a> ()</td></tr>
<tr class="separator:aa81dcdd56f7f3e0c4dbaebe14b7f16f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f97d801ccbee1344848c3b85f95e7fc"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_server.html#a3f97d801ccbee1344848c3b85f95e7fc">~ClientServer</a> ()</td></tr>
<tr class="separator:a3f97d801ccbee1344848c3b85f95e7fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0042e91d55d5400b127e32be4e2500a7"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_server.html#a0042e91d55d5400b127e32be4e2500a7">Init</a> (const <a class="el" href="class_tcp_config.html">TcpConfig</a> &amp;c)</td></tr>
<tr class="memdesc:a0042e91d55d5400b127e32be4e2500a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化服务  <a href="class_client_server.html#a0042e91d55d5400b127e32be4e2500a7">更多...</a><br /></td></tr>
<tr class="separator:a0042e91d55d5400b127e32be4e2500a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fb112bc3fb44a2e2f3f8f466a6eb56e"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_server.html#a7fb112bc3fb44a2e2f3f8f466a6eb56e">Run</a> ()</td></tr>
<tr class="memdesc:a7fb112bc3fb44a2e2f3f8f466a6eb56e"><td class="mdescLeft">&#160;</td><td class="mdescRight">运行服务  <a href="class_client_server.html#a7fb112bc3fb44a2e2f3f8f466a6eb56e">更多...</a><br /></td></tr>
<tr class="separator:a7fb112bc3fb44a2e2f3f8f466a6eb56e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad971e40b6fd6447bba55ca992b0e309"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_server.html#aad971e40b6fd6447bba55ca992b0e309">NotifyExit</a> ()</td></tr>
<tr class="memdesc:aad971e40b6fd6447bba55ca992b0e309"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知Run函数退出  <a href="class_client_server.html#aad971e40b6fd6447bba55ca992b0e309">更多...</a><br /></td></tr>
<tr class="separator:aad971e40b6fd6447bba55ca992b0e309"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bb203df5c04d7b940092047e7f2668e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_server.html#a1bb203df5c04d7b940092047e7f2668e">PostConnect</a> (void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>, const char *addr=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>, <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> port=0)</td></tr>
<tr class="memdesc:a1bb203df5c04d7b940092047e7f2668e"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个接收请求，参数将会被忽略  <a href="class_client_server.html#a1bb203df5c04d7b940092047e7f2668e">更多...</a><br /></td></tr>
<tr class="separator:a1bb203df5c04d7b940092047e7f2668e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd4373ea16097009de3cda8d51e64719"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_server.html#acd4373ea16097009de3cda8d51e64719">Post</a> (<a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>(*complete)(void *), void *invoker)</td></tr>
<tr class="memdesc:acd4373ea16097009de3cda8d51e64719"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个用户操作  <a href="class_client_server.html#acd4373ea16097009de3cda8d51e64719">更多...</a><br /></td></tr>
<tr class="separator:acd4373ea16097009de3cda8d51e64719"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17b41665a35c32ba39833c98e4ca99bd"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_server.html#a17b41665a35c32ba39833c98e4ca99bd">DealConnect</a> (<a class="el" href="class_client.html">Client</a> *c, const char *msg, void *invoker)</td></tr>
<tr class="memdesc:a17b41665a35c32ba39833c98e4ca99bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理接收函数，子类可重写此处理  <a href="class_client_server.html#a17b41665a35c32ba39833c98e4ca99bd">更多...</a><br /></td></tr>
<tr class="separator:a17b41665a35c32ba39833c98e4ca99bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a050830ae50d82c4b134e90b5d1993b42"><td class="memItemLeft" align="right" valign="top">virtual const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_server.html#a050830ae50d82c4b134e90b5d1993b42">GetName</a> () const</td></tr>
<tr class="memdesc:a050830ae50d82c4b134e90b5d1993b42"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回客户端名称  <a href="class_client_server.html#a050830ae50d82c4b134e90b5d1993b42">更多...</a><br /></td></tr>
<tr class="separator:a050830ae50d82c4b134e90b5d1993b42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_service"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_service')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_service.html">Service</a></td></tr>
<tr class="memitem:ae3887d7d725c94f207a479a10cce30bd inherit pub_methods_class_service"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#ae3887d7d725c94f207a479a10cce30bd">Service</a> ()</td></tr>
<tr class="separator:ae3887d7d725c94f207a479a10cce30bd inherit pub_methods_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6c3577b59652ac817d1d76aaccee904 inherit pub_methods_class_service"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#af6c3577b59652ac817d1d76aaccee904">~Service</a> ()</td></tr>
<tr class="separator:af6c3577b59652ac817d1d76aaccee904 inherit pub_methods_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05c507629c3614ccbe433ea89fd0f985 inherit pub_methods_class_service"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a05c507629c3614ccbe433ea89fd0f985">IsServer</a> () const</td></tr>
<tr class="memdesc:a05c507629c3614ccbe433ea89fd0f985 inherit pub_methods_class_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回是否为服务端的标志  <a href="class_service.html#a05c507629c3614ccbe433ea89fd0f985">更多...</a><br /></td></tr>
<tr class="separator:a05c507629c3614ccbe433ea89fd0f985 inherit pub_methods_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94ef51dae18339e99ea55a67c3b00451 inherit pub_methods_class_service"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a94ef51dae18339e99ea55a67c3b00451">IsExistClient</a> (const std::string &amp;iden) const</td></tr>
<tr class="memdesc:a94ef51dae18339e99ea55a67c3b00451 inherit pub_methods_class_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过id, 查找客户端是否存在  <a href="class_service.html#a94ef51dae18339e99ea55a67c3b00451">更多...</a><br /></td></tr>
<tr class="separator:a94ef51dae18339e99ea55a67c3b00451 inherit pub_methods_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87a64eeb17b61e794c1651d2de93f49b inherit pub_methods_class_service"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a87a64eeb17b61e794c1651d2de93f49b">IsServiceFlag</a> (const std::string &amp;iden) const</td></tr>
<tr class="memdesc:a87a64eeb17b61e794c1651d2de93f49b inherit pub_methods_class_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过客户端标志判断服务标志是否为此服务  <a href="class_service.html#a87a64eeb17b61e794c1651d2de93f49b">更多...</a><br /></td></tr>
<tr class="separator:a87a64eeb17b61e794c1651d2de93f49b inherit pub_methods_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4f45cb83a28907849da7897f7a30016 inherit pub_methods_class_service"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#ab4f45cb83a28907849da7897f7a30016">GetSize</a> () const</td></tr>
<tr class="memdesc:ab4f45cb83a28907849da7897f7a30016 inherit pub_methods_class_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取客户端大小  <a href="class_service.html#ab4f45cb83a28907849da7897f7a30016">更多...</a><br /></td></tr>
<tr class="separator:ab4f45cb83a28907849da7897f7a30016 inherit pub_methods_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aede679dc4ce20dbe8fc56d9998727ef5 inherit pub_methods_class_service"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#aede679dc4ce20dbe8fc56d9998727ef5">SetServiceFlag</a> (const std::string &amp;flag)</td></tr>
<tr class="memdesc:aede679dc4ce20dbe8fc56d9998727ef5 inherit pub_methods_class_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置服务标志,只能为数字或者字母  <a href="class_service.html#aede679dc4ce20dbe8fc56d9998727ef5">更多...</a><br /></td></tr>
<tr class="separator:aede679dc4ce20dbe8fc56d9998727ef5 inherit pub_methods_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae091318f2a5a2708d1631670e8bce6c0 inherit pub_methods_class_service"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#ae091318f2a5a2708d1631670e8bce6c0">GetServiceFlag</a> () const</td></tr>
<tr class="memdesc:ae091318f2a5a2708d1631670e8bce6c0 inherit pub_methods_class_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取服务标志  <a href="class_service.html#ae091318f2a5a2708d1631670e8bce6c0">更多...</a><br /></td></tr>
<tr class="separator:ae091318f2a5a2708d1631670e8bce6c0 inherit pub_methods_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a040c5f1db96aad100bb713db069bc19e inherit pub_methods_class_service"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a040c5f1db96aad100bb713db069bc19e">GetClientIden</a> (<a class="el" href="class_client.html">Client</a> *c) const</td></tr>
<tr class="memdesc:a040c5f1db96aad100bb713db069bc19e inherit pub_methods_class_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">生成客户端标志  <a href="class_service.html#a040c5f1db96aad100bb713db069bc19e">更多...</a><br /></td></tr>
<tr class="separator:a040c5f1db96aad100bb713db069bc19e inherit pub_methods_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:af8489c6cf441bd12e48c4c1421c7c6cf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_server.html#af8489c6cf441bd12e48c4c1421c7c6cf">SetClient</a> (const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_client.html">Client</a> &gt; &amp;c)</td></tr>
<tr class="separator:af8489c6cf441bd12e48c4c1421c7c6cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f88a8505fd02dba1337cd974a511f39"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_basic_service.html">CBasicService</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_server.html#a3f88a8505fd02dba1337cd974a511f39">GetTcpService</a> () const</td></tr>
<tr class="memdesc:a3f88a8505fd02dba1337cd974a511f39"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取tcp底层类指针  <a href="class_client_server.html#a3f88a8505fd02dba1337cd974a511f39">更多...</a><br /></td></tr>
<tr class="separator:a3f88a8505fd02dba1337cd974a511f39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_service"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_service')"><img src="closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="class_service.html">Service</a></td></tr>
<tr class="memitem:aceb078ac7bb78b45f21e0a3d2bf79735 inherit pro_methods_class_service"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#aceb078ac7bb78b45f21e0a3d2bf79735">AddClient</a> (const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_client.html">Client</a> &gt; &amp;c)</td></tr>
<tr class="memdesc:aceb078ac7bb78b45f21e0a3d2bf79735 inherit pro_methods_class_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">增加客户端  <a href="class_service.html#aceb078ac7bb78b45f21e0a3d2bf79735">更多...</a><br /></td></tr>
<tr class="separator:aceb078ac7bb78b45f21e0a3d2bf79735 inherit pro_methods_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cac6e8d20e95f043d56d83e3ddd33bc inherit pro_methods_class_service"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a3cac6e8d20e95f043d56d83e3ddd33bc">DeleteClient</a> (<a class="el" href="_sock_tools_8h.html#ac7875a7f6984241a06892f7041b4d30a">SOCKIDEN</a> id)</td></tr>
<tr class="memdesc:a3cac6e8d20e95f043d56d83e3ddd33bc inherit pro_methods_class_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">删除客户端  <a href="class_service.html#a3cac6e8d20e95f043d56d83e3ddd33bc">更多...</a><br /></td></tr>
<tr class="separator:a3cac6e8d20e95f043d56d83e3ddd33bc inherit pro_methods_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f2080b05bc4a1a5642b7fba69d7f0d2 inherit pro_methods_class_service"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a1f2080b05bc4a1a5642b7fba69d7f0d2">PopClient</a> (<a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_client.html">Client</a> &gt; &amp;c)</td></tr>
<tr class="memdesc:a1f2080b05bc4a1a5642b7fba69d7f0d2 inherit pro_methods_class_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取一个客户端  <a href="class_service.html#a1f2080b05bc4a1a5642b7fba69d7f0d2">更多...</a><br /></td></tr>
<tr class="separator:a1f2080b05bc4a1a5642b7fba69d7f0d2 inherit pro_methods_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26b720587403b9fe88c7b122ebab3553 inherit pro_methods_class_service"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a26b720587403b9fe88c7b122ebab3553">Clear</a> ()</td></tr>
<tr class="memdesc:a26b720587403b9fe88c7b122ebab3553 inherit pro_methods_class_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">清空所有客户端  <a href="class_service.html#a26b720587403b9fe88c7b122ebab3553">更多...</a><br /></td></tr>
<tr class="separator:a26b720587403b9fe88c7b122ebab3553 inherit pro_methods_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36e6b17fa4ed3d5582a4d5bc8e6da4f4 inherit pro_methods_class_service"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a36e6b17fa4ed3d5582a4d5bc8e6da4f4">DeleteClient</a> (void *invoker)</td></tr>
<tr class="separator:a36e6b17fa4ed3d5582a4d5bc8e6da4f4 inherit pro_methods_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-static-methods"></a>
静态 Protected 成员函数</h2></td></tr>
<tr class="memitem:aba3869c3d20879ecff2d264479b7a2d5"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_server.html#aba3869c3d20879ecff2d264479b7a2d5">ConnectComplete</a> (<a class="el" href="class_c_sock_error.html">CSockError</a> ec, void *invoker)</td></tr>
<tr class="separator:aba3869c3d20879ecff2d264479b7a2d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f64fcd3a85d6afe01eec868ae928b72"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_server.html#a2f64fcd3a85d6afe01eec868ae928b72">ConnectFailed</a> (void *invoker)</td></tr>
<tr class="separator:a2f64fcd3a85d6afe01eec868ae928b72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_static_methods_class_service"><td colspan="2" onclick="javascript:toggleInherit('pro_static_methods_class_service')"><img src="closed.png" alt="-"/>&#160;静态 Protected 成员函数 继承自 <a class="el" href="class_service.html">Service</a></td></tr>
<tr class="memitem:a46eb93cf78fbfeed368634a90d9775d9 inherit pro_static_methods_class_service"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a46eb93cf78fbfeed368634a90d9775d9">DeleteNullClient</a> (<a class="el" href="class_client.html">Client</a> *c)</td></tr>
<tr class="separator:a46eb93cf78fbfeed368634a90d9775d9 inherit pro_static_methods_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:ad39a839fc6009ef2c99325121c17d099"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_c_tcp_io_client.html">CTcpIoClient</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_server.html#ad39a839fc6009ef2c99325121c17d099">_tcpClient</a></td></tr>
<tr class="separator:ad39a839fc6009ef2c99325121c17d099"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_service"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_service')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="class_service.html">Service</a></td></tr>
<tr class="memitem:a307f7bf977f0a39c8675fb42bc204e36 inherit pro_attribs_class_service"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_string_imp_8h.html#a2024a29cf6ecb0ef87f0bc2ef277a7e9">StringImp</a>&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a307f7bf977f0a39c8675fb42bc204e36">_serviceFlag</a></td></tr>
<tr class="memdesc:a307f7bf977f0a39c8675fb42bc204e36 inherit pro_attribs_class_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">服务前缀标志  <a href="class_service.html#a307f7bf977f0a39c8675fb42bc204e36">更多...</a><br /></td></tr>
<tr class="separator:a307f7bf977f0a39c8675fb42bc204e36 inherit pro_attribs_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac215518825547a80c089e9166d4f5e72 inherit pro_attribs_class_service"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_tcp_config.html">TcpConfig</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#ac215518825547a80c089e9166d4f5e72">_config</a></td></tr>
<tr class="memdesc:ac215518825547a80c089e9166d4f5e72 inherit pro_attribs_class_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">配置文件  <a href="class_service.html#ac215518825547a80c089e9166d4f5e72">更多...</a><br /></td></tr>
<tr class="separator:ac215518825547a80c089e9166d4f5e72 inherit pro_attribs_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5155a095380842a32c022fe9c9854ffd inherit pro_attribs_class_service"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_safe_map.html">CSafeMap</a>&lt; <a class="el" href="_sock_tools_8h.html#ac7875a7f6984241a06892f7041b4d30a">SOCKIDEN</a>, <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_client.html">Client</a> &gt; &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a5155a095380842a32c022fe9c9854ffd">_mgr</a></td></tr>
<tr class="memdesc:a5155a095380842a32c022fe9c9854ffd inherit pro_attribs_class_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">客户端管理  <a href="class_service.html#a5155a095380842a32c022fe9c9854ffd">更多...</a><br /></td></tr>
<tr class="separator:a5155a095380842a32c022fe9c9854ffd inherit pro_attribs_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83c9735b06c1d6bd177cb0b8d04ce038 inherit pro_attribs_class_service"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a83c9735b06c1d6bd177cb0b8d04ce038">_isServer</a></td></tr>
<tr class="memdesc:a83c9735b06c1d6bd177cb0b8d04ce038 inherit pro_attribs_class_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">服务端标志  <a href="class_service.html#a83c9735b06c1d6bd177cb0b8d04ce038">更多...</a><br /></td></tr>
<tr class="separator:a83c9735b06c1d6bd177cb0b8d04ce038 inherit pro_attribs_class_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:ad4b6dc0b81b8e4dc9a4c21acac9908f8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_server.html#ad4b6dc0b81b8e4dc9a4c21acac9908f8">delete_class_copy_operator</a> (<a class="el" href="class_client_server.html">ClientServer</a>)</td></tr>
<tr class="separator:ad4b6dc0b81b8e4dc9a4c21acac9908f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87b62b544a5886d983efa2b8f36329d8"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_server.html#a87b62b544a5886d983efa2b8f36329d8">SetSocketOpt</a> (<a class="el" href="class_c_tcp_io_socket.html">CTcpIoSocket</a> *s)</td></tr>
<tr class="memdesc:a87b62b544a5886d983efa2b8f36329d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">该函数被屏蔽  <a href="class_client_server.html#a87b62b544a5886d983efa2b8f36329d8">更多...</a><br /></td></tr>
<tr class="separator:a87b62b544a5886d983efa2b8f36329d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock">
<p class="definition">在文件 <a class="el" href="_client_server_8h_source.html">ClientServer.h</a> 第 <a class="el" href="_client_server_8h_source.html#l00010">10</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="aa81dcdd56f7f3e0c4dbaebe14b7f16f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa81dcdd56f7f3e0c4dbaebe14b7f16f9">&#9670;&nbsp;</a></span>ClientServer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a> ClientServer::ClientServer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_client_server_8cpp_source.html">ClientServer.cpp</a> 第 <a class="el" href="_client_server_8cpp_source.html#l00013">13</a> 行定义.</p>

</div>
</div>
<a id="a3f97d801ccbee1344848c3b85f95e7fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f97d801ccbee1344848c3b85f95e7fc">&#9670;&nbsp;</a></span>~ClientServer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ClientServer::~ClientServer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_client_server_8cpp_source.html">ClientServer.cpp</a> 第 <a class="el" href="_client_server_8cpp_source.html#l00018">18</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="aba3869c3d20879ecff2d264479b7a2d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba3869c3d20879ecff2d264479b7a2d5">&#9670;&nbsp;</a></span>ConnectComplete()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> ClientServer::ConnectComplete </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_sock_error.html">CSockError</a>&#160;</td>
          <td class="paramname"><em>ec</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_client_server_8cpp_source.html">ClientServer.cpp</a> 第 <a class="el" href="_client_server_8cpp_source.html#l00086">86</a> 行定义.</p>

</div>
</div>
<a id="a2f64fcd3a85d6afe01eec868ae928b72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f64fcd3a85d6afe01eec868ae928b72">&#9670;&nbsp;</a></span>ConnectFailed()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> ClientServer::ConnectFailed </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_client_server_8cpp_source.html">ClientServer.cpp</a> 第 <a class="el" href="_client_server_8cpp_source.html#l00104">104</a> 行定义.</p>

</div>
</div>
<a id="a17b41665a35c32ba39833c98e4ca99bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17b41665a35c32ba39833c98e4ca99bd">&#9670;&nbsp;</a></span>DealConnect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> ClientServer::DealConnect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_client.html">Client</a> *&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>处理接收函数，子类可重写此处理 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td>接收的客户端 </td></tr>
    <tr><td class="paramname">msg</td><td>若发生错误则msg返回错误信息，返回nullptr则成功 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户传入的数据指针 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回0，失败返回其它值 </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>如果发生错误，类会在DealConnect处理完后自动删除客户端 </dd></dl>

<p>实现了 <a class="el" href="class_service.html#acad19cb7557fac6e504af4fb5c734d4e">Service</a>.</p>

<p class="definition">在文件 <a class="el" href="_client_server_8cpp_source.html">ClientServer.cpp</a> 第 <a class="el" href="_client_server_8cpp_source.html#l00076">76</a> 行定义.</p>

</div>
</div>
<a id="ad4b6dc0b81b8e4dc9a4c21acac9908f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4b6dc0b81b8e4dc9a4c21acac9908f8">&#9670;&nbsp;</a></span>delete_class_copy_operator()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ClientServer::delete_class_copy_operator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_client_server.html">ClientServer</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a050830ae50d82c4b134e90b5d1993b42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a050830ae50d82c4b134e90b5d1993b42">&#9670;&nbsp;</a></span>GetName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* ClientServer::GetName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>返回客户端名称 </p>

<p>实现了 <a class="el" href="class_service.html#a632a3bcb74f8fc331d37e55c50951d83">Service</a>.</p>

<p class="definition">在文件 <a class="el" href="_client_server_8h_source.html">ClientServer.h</a> 第 <a class="el" href="_client_server_8h_source.html#l00048">48</a> 行定义.</p>

</div>
</div>
<a id="a3f88a8505fd02dba1337cd974a511f39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f88a8505fd02dba1337cd974a511f39">&#9670;&nbsp;</a></span>GetTcpService()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_basic_service.html">CBasicService</a> * ClientServer::GetTcpService </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取tcp底层类指针 </p>

<p>实现了 <a class="el" href="class_service.html#a9ea329d8d3607adcd3e03a94a0585217">Service</a>.</p>

<p class="definition">在文件 <a class="el" href="_client_server_8cpp_source.html">ClientServer.cpp</a> 第 <a class="el" href="_client_server_8cpp_source.html#l00110">110</a> 行定义.</p>

</div>
</div>
<a id="a0042e91d55d5400b127e32be4e2500a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0042e91d55d5400b127e32be4e2500a7">&#9670;&nbsp;</a></span>Init()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool ClientServer::Init </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tcp_config.html">TcpConfig</a> &amp;&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>初始化服务 </p>

<p>实现了 <a class="el" href="class_service.html#a2d41738423a6eafacc44af90ca6c6ef7">Service</a>.</p>

<p class="definition">在文件 <a class="el" href="_client_server_8cpp_source.html">ClientServer.cpp</a> 第 <a class="el" href="_client_server_8cpp_source.html#l00023">23</a> 行定义.</p>

</div>
</div>
<a id="aad971e40b6fd6447bba55ca992b0e309"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad971e40b6fd6447bba55ca992b0e309">&#9670;&nbsp;</a></span>NotifyExit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ClientServer::NotifyExit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通知Run函数退出 </p>

<p>实现了 <a class="el" href="class_service.html#ae7f2c04b1f26bcb86e59beb2f7dcbeed">Service</a>.</p>

<p class="definition">在文件 <a class="el" href="_client_server_8cpp_source.html">ClientServer.cpp</a> 第 <a class="el" href="_client_server_8cpp_source.html#l00035">35</a> 行定义.</p>

</div>
</div>
<a id="acd4373ea16097009de3cda8d51e64719"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd4373ea16097009de3cda8d51e64719">&#9670;&nbsp;</a></span>Post()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ClientServer::Post </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>(*)(void *)&#160;</td>
          <td class="paramname"><em>complete</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个用户操作 </p>

<p>实现了 <a class="el" href="class_service.html#a24501c6a89af8f6781ef96b423644780">Service</a>.</p>

<p class="definition">在文件 <a class="el" href="_client_server_8cpp_source.html">ClientServer.cpp</a> 第 <a class="el" href="_client_server_8cpp_source.html#l00071">71</a> 行定义.</p>

</div>
</div>
<a id="a1bb203df5c04d7b940092047e7f2668e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1bb203df5c04d7b940092047e7f2668e">&#9670;&nbsp;</a></span>PostConnect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ClientServer::PostConnect </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>addr</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td>
          <td class="paramname"><em>port</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个接收请求，参数将会被忽略 </p>
<dl class="section remark"><dt>备注</dt><dd>用户需要调用一次此函数才能开始工作， 此后DealConnect处理接连之后会自动调用投递函数; 用户也可以重写DealConnect函数以便实现自己的逻辑 </dd></dl>

<p>实现了 <a class="el" href="class_service.html#a7f9f9d3c3033b32ce108509093a7ff08">Service</a>.</p>

<p class="definition">在文件 <a class="el" href="_client_server_8cpp_source.html">ClientServer.cpp</a> 第 <a class="el" href="_client_server_8cpp_source.html#l00051">51</a> 行定义.</p>

</div>
</div>
<a id="a7fb112bc3fb44a2e2f3f8f466a6eb56e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7fb112bc3fb44a2e2f3f8f466a6eb56e">&#9670;&nbsp;</a></span>Run()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool ClientServer::Run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>运行服务 </p>

<p>实现了 <a class="el" href="class_service.html#aad0c7b096b5dc39a0a763997f045c2d5">Service</a>.</p>

<p class="definition">在文件 <a class="el" href="_client_server_8cpp_source.html">ClientServer.cpp</a> 第 <a class="el" href="_client_server_8cpp_source.html#l00030">30</a> 行定义.</p>

</div>
</div>
<a id="af8489c6cf441bd12e48c4c1421c7c6cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8489c6cf441bd12e48c4c1421c7c6cf">&#9670;&nbsp;</a></span>SetClient()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ClientServer::SetClient </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_client.html">Client</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_client_server_8cpp_source.html">ClientServer.cpp</a> 第 <a class="el" href="_client_server_8cpp_source.html#l00040">40</a> 行定义.</p>

</div>
</div>
<a id="a87b62b544a5886d983efa2b8f36329d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87b62b544a5886d983efa2b8f36329d8">&#9670;&nbsp;</a></span>SetSocketOpt()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool ClientServer::SetSocketOpt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_tcp_io_socket.html">CTcpIoSocket</a> *&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>该函数被屏蔽 </p>

<p>实现了 <a class="el" href="class_service.html#a3a7a13a861535967242b96661e0b75ba">Service</a>.</p>

<p class="definition">在文件 <a class="el" href="_client_server_8h_source.html">ClientServer.h</a> 第 <a class="el" href="_client_server_8h_source.html#l00056">56</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="ad39a839fc6009ef2c99325121c17d099"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad39a839fc6009ef2c99325121c17d099">&#9670;&nbsp;</a></span>_tcpClient</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt;<a class="el" href="class_c_tcp_io_client.html">CTcpIoClient</a>&gt; ClientServer::_tcpClient</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_client_server_8h_source.html">ClientServer.h</a> 第 <a class="el" href="_client_server_8h_source.html#l00059">59</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/framework/tcp/framework/<a class="el" href="_client_server_8h_source.html">ClientServer.h</a></li>
<li>H:/project/LibTools/src/framework/tcp/framework/<a class="el" href="_client_server_8cpp_source.html">ClientServer.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
